IF EXISTS ( SELECT  *
            FROM    dbo.sysobjects
            WHERE   id = OBJECT_ID(N'CGO_TriviaQuestion')
                    AND OBJECTPROPERTY(id, N'IsTable') = 1 ) 
  BEGIN
    DROP TABLE dbo.CGO_TriviaQuestion
  END


CREATE TABLE [dbo].[CGO_TriviaQuestion]
  (
    [QuestionID] [int] NOT NULL IDENTITY(1, 1),
    [CategoryID] [int] NOT NULL,
    [Description] [nvarchar] (1000) NOT NULL,
    [CorrectAnswerID] [int] NULL,
    [Difficulty] [int] NULL,
    [Comment] [nvarchar] (2000) NULL    
  )
ON
  [PRIMARY]
GO
ALTER TABLE [dbo].[CGO_TriviaQuestion] ADD CONSTRAINT [PK_CGO_TriviaQuestion] PRIMARY KEY CLUSTERED  ([QuestionID]) ON [PRIMARY]
GO